<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
    <div id="root">
        <!--v-pre命令让vue跳过渲染标签，vue不会解析v-pre的标签，渲染静态内容时效率更高-->
        <h2 v-pre>这是静态内容</h2>
        <h2 v-pre>当前n的值: {{n}}</h2>
        <button @click="n++">点我n+1</button>
    </div>
 
    <script>
        Vue.config.productionTip = false
        let vm = new Vue({
            el: "#root",
            data: {
                n: 0,
            }
        })

    </script>
</body>
</html>